package router

import (
	"github.com/gin-gonic/gin"
	"zg4/zk1/api/consts"
	"zg4/zk1/api/handler"
	"zg4/zk1/api/pkg"
)

func VideoRouter(router *gin.RouterGroup) {

	router.POST("/add", handler.AddVideo)
	router.GET("/list", handler.RecommendVideoList)
	router.Use(pkg.JWTAuth(consts.JWT_APP_KEY))
	router.GET("/info", handler.VideoInfo)
}
